﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EBA.Localization;

namespace EBA.Framework
{
    /// <summary>
    /// 描述在配置项<see cref="BundleConfigurationElementCollection"/>中找不到指定标识的插件配置节点。
    /// </summary>
    [Serializable]
    public class BundleConfigurationElementNotFoundException : Exception
    {
       /// <summary>
       /// 构造函数
       /// </summary>
        public BundleConfigurationElementNotFoundException() { }
        /// <summary>
        /// 构造函数
        /// </summary>
        public BundleConfigurationElementNotFoundException(string bundleId) : base("The bundle[{0}]'s configration element can not be found.".T(bundleId)) { }
        /// <summary>
        /// 构造函数
        /// </summary>
        public BundleConfigurationElementNotFoundException(string message, Exception inner) : base(message, inner) { }
        /// <summary>
        /// 构造函数
        /// </summary>
        protected BundleConfigurationElementNotFoundException(
          System.Runtime.Serialization.SerializationInfo info,
          System.Runtime.Serialization.StreamingContext context)
            : base(info, context) { }
    }
}
